# -*- coding: utf-8 -*- 
"""
copyright

"""
#目录Bar
from PyQt5.QtWidgets import QMenuBar , QMenu, QAction


class bmMenuBar (QMenuBar):
    def __init__(self):
        super(bmMenuBar,self).__init__()
        self.setVisible(True)
        self.initMenu()

    def initMenu(self):
        """
        目录
        """
        fileMenu = QMenu(self)
        fileMenu.setTitle("文件")
        fileMenu.setVisible(True)
        self.addMenu(fileMenu)

        newAction = QAction("新建", fileMenu)
        fileMenu.addAction(newAction)
